<f:view xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">

    <h:head></h:head>

    <h:form>

        <p:calendar value="#{testBean.date}" mode="inline" />	
        <p:commandButton update="display" value="Submit" /> 
        
        <h:outputText id="display" value="#{testBean.date}" />

    </h:form>

</f:view>